{include file="public_iframe:head"}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>导航列表</h5>
                    <div class="ibox-tools" style="margin-top: -9px;">
                        <a href="javascript:location.reload();" class="btn btn-primary"><i class="fa fa-refresh"></i> 刷新</a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                            <a href="{:url('Nav/add')}" class="btn btn-primary">添加</a>
                        </div>
                    </div>

                    <br />

                    <div class="table-responsive">
                        <form action="__URL__/operate" method="post" id="operate_form">
                            <table class="table table-bordered table-hover"
                                   id="categoryTable">
                                <thead>
                                <tr class="active">
                                    <th height="40">编号</th>
                                    <th>导航名称</th>
                                    <th>导航链接</th>
                                    <th>是否显示</th>
                                    <th>排序</th>
                                    <th width="80">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="vo"}
                                    <tr>
                                        <td>{$vo['id']}</td>
                                        <td>{$vo.name}</td>
                                        <td>{$vo.mca}</td>
                                        <td>
                                            {switch name="$vo.is_display"}
                                                {case value="1"}启用{/case}
                                                {default /}不启用
                                            {/switch}
                                        </td>
                                        <td>{$vo.order_number}</td>
                                        <td class="center" width="140">
                                            <a href="{:url('Nav/add',array('id'=>$vo['id']))}" class="btn btn-primary">编辑</a>
                                            <a href="{:url('Nav/delete',array('id'=>$vo['id']))}" class="btn btn-primary">删除</a>
                                        </td>
                                    </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                        <div class="col-sm-12" style="padding:0px;">
                            <ul class="pagination  pull-right">
                                {$page}
                            </ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>

</body>

</html>